//数据库操作对象
var DbCore = require("../../models/db/DbCore");
var express = require('express');
var router = express.Router();

//获取所有用户
router.get('/getAllUser',function(req,res,next) {
   DbCore.findAll("User",res);
});

//新增用户
router.post('/addUser',function(req,res,next) {
    DbCore.addOne("User",req,res);
});

module.exports = router;